<!DOCTYPE HTML>
<html>
<head>
    <title>帮教管理--鉴定页面</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <script src="/webjars/miniui/boot.js" type="text/javascript"></script>
    <link href="/static/css/resource.css" rel="stylesheet" type="text/css"/>
    <link href="/static/css/default.css" rel="stylesheet" type="text/css"/>
    <script src="/static/js/common/common.js" type="text/javascript"></script>
</head>
<body onload="onLoad()">
<div class="mini-fit" style="padding-top: 20px;margin-bottom: 45px;">

    <h2 style="text-align: center">年度鉴定</h2>

    <form id="form" method="post" style="padding:10px;">
        <!-- 用户 编辑框START-->
        <div id="editform" class="form">
            <table class="form-table" width="100%" cellspacing="8">
                <input id="id" name="id" class="mini-hidden" value="${id!''}" style="width: 100%;" readonly/>
                <input id="priNum" name="priNum" class="mini-hidden" value="${priNum!''}" style="width: 100%;" readonly/>
                <tr>
                    <td style="width: 20%" align="right"><span
                                style="font-size: 15px;line-height: 30px;font-weight: bold">鉴定内容&emsp;&emsp;&emsp;&emsp;</span>
                    </td>
                    <td colspan="3">

                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>年&emsp;&emsp;度:</td>
                    <td width="30%">
                        <input name="niandu" id="niandu" class="mini-combobox" value="${niandu!''}" textField="name"
                               valueField="id" required="true" onclick="setYear(6)"  onblur="yearChange()"/>
                    </td>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>现实表现:</td>
                    <td width="30%">
                        <input name="xianshibiaoxian" id="xianshibiaoxian" class="mini-radiobuttonlist"
                               value="${xianshibiaoxian!''}"
                               data="[{ id: '01', name: '好' },{ id: '02', name: '一般' },{ id: '03', name: '不好' }]" required="true"
                               textField="name" valueField="id" required="true" />
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>工作情况:</td>
                    <td width="30%">
                        <input name="gongzuoqingkuang" id="gongzuoqingkuang" class="mini-radiobuttonlist"
                               value="${gongzuoqingkuang!''}"
                               data="[{ id: '01', name: '有' },{ id: '02', name: '无' }]" required="true"
                               textField="name" valueField="id" required="true" disabled />
                    </td>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>经济情况:</td>
                    <td width="30%">
                        <input name="jingjizhuangkuang" id="jingjizhuangkuang" class="mini-radiobuttonlist"
                               value="${jingjizhuangkuang!''}"
                               data="[{ id: '01', name: '好' },{ id: '02', name: '一般' },{ id: '03', name: '不好' }]" required="true"
                               textField="name" valueField="id" required="true" />
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>家庭情况:</td>
                    <td width="30%">
                        <input name="jiatingqingkuang" id="jiatingqingkuang" class="mini-radiobuttonlist"
                               value="${jiatingqingkuang!''}"
                               data="[{ id: '01', name: '稳定' },{ id: '02', name: '不稳定' }]" required="true"
                               textField="name" valueField="id" required="true" />
                    </td>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>活动场所:</td>
                    <td width="30%">
                        <input name="huodongchangsuo" id="huodongchangsuo" class="mini-radiobuttonlist"
                               value="${huodongchangsuo!''}"
                               data="[{ id: '01', name: '固定' },{ id: '02', name: '不固定' }]" required="true"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>社会交往:</td>
                    <td width="30%">
                        <input name="shehuijiaowang" id="shehuijiaowang" class="mini-radiobuttonlist"
                               value="${shehuijiaowang!''}"
                               data="[{ id: '01', name: '不复杂' },{ id: '02', name: '复杂' }]" required="true"
                               textField="name" valueField="id" required="true"/>
                    </td>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>有无重新违法犯罪倾向:</td>
                    <td width="30%">
                        <input name="fanzuiqingxiang" id="fanzuiqingxiang" class="mini-radiobuttonlist"
                               value="${fanzuiqingxiang!''}"
                               data="[{ id: '01', name: '有' },{ id: '02', name: '无' }]" required="true"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>治保（调解）主任:</td>
                    <td width="30%">
                        <input name="zhuren" id="zhuren" class="mini-textbox" value="${zhuren!''}" required="true"/>
                    </td>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>主任（调解）日期:</td>
                    <td width="30%">
                        <input name="zrDate" id="zrDate" allowInput="false" class="mini-datepicker" value="${zrDate!''}" required="true" ondrawdate="onDrawDate"/>
                    </td>
                </tr>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>责任区民警:</td>
                    <td width="30%">
                        <input name="minjing" id="minjing" class="mini-textbox" value="${minjing!''}"
                               required="true" required="true"/>
                    </td>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>民警（调解）日期:</td>
                    <td width="30%">
                        <input name="mjDate" id="mjDate" allowInput="false" class="mini-datepicker" value="${mjDate!''}" required="true" ondrawdate="onDrawDate"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>解决的实际问题:</td>
                    <td width="80%" colspan="3">
                        <input name="jiejuewenti" id="jiejuewenti" class="mini-textarea" value="${jiejuewenti!''}"
                               style="width:90%; height: 80px;" emptyText="请输入内容(0-1000):" required="true" maxlength="1000"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>定期走访谈话情况:</td>
                    <td width="80%" colspan="3">
                        <input id="tanhuaqingkuang" name="tanhuaqingkuang" class="mini-textarea"
                               emptyText="请输入内容(0-1000):" maxlength="1000"
                               value="${tanhuaqingkuang!''}" style="width:90%; height: 80px;" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>帮教小组成员落实情况:</td>
                    <td width="80%" colspan="3">
                        <input id="luoshiqingkuang" name="luoshiqingkuang" class="mini-textarea"
                               emptyText="请输入内容(0-1000):" maxlength="1000"
                               value="${luoshiqingkuang!''}" style="width:90%; height: 80px;" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>卷宗记载情况:</td>
                    <td width="80%" colspan="3">
                        <input id="jizaiqingkuang" name="jizaiqingkuang" class="mini-textarea" emptyText="请输入内容(0-1000):"
                               value="${jizaiqingkuang!''}" style="width:90%; height: 80px;" required="true" maxlength="1000"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>法治教育情况:</td>
                    <td width="80%" colspan="3">
                        <input id="jiaoyuqingkuang" name="jiaoyuqingkuang" class="mini-textarea"
                               emptyText="请输入内容(0-1000):" maxlength="1000"
                               value="${jiaoyuqingkuang!''}" style="width:90%; height: 80px;" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>考核负责人:</td>
                    <td width="80%" colspan="3">
                        <input id="zerenren" name="zerenren" class="mini-textarea" emptyText="请输入内容(0-1000):"
                               value="${zerenren!''}" style="width:90%; height: 80px;" required="true" maxlength="1000"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>涉矛盾纠纷:</td>
                    <td width="80%" colspan="3">
                        <input id="maodun" name="maodun" class="mini-textarea" emptyText="请输入内容(0-1000):"
                               value="${maodun!''}" style="width:90%; height: 80px;" required="true" maxlength="1000"/>
                    </td>
                </tr>
            </table>
        </div>
        <br/>
        <hr/>
        <br/>
        <div id="editform" class="form">
            <table class="form-table" width="100%" cellspacing="8">
                <tr>
                    <td style="width:  20%" align="right"><span
                                style="font-size: 15px;line-height: 30px;font-weight: bold">评估内容&emsp;&emsp;&emsp;&emsp;</span>
                    </td>
                    <td style="width: 80%" colspan="3">
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>监所评估:</td>
                    <td width="80%" colspan="3">
                        <input name="jiansuo" id="jiansuo" class="mini-radiobuttonlist" value="${jiansuo!''}"
                               data="[{ id: '01', name: '重点帮教对象' },{ id: '02', name: '一般帮教对象' }]"
                               <#if jiansuo??>
                                   readonly="true"
                                </#if>
                               textField="name" valueField="id" required="true"/>
                    </td>

                </tr>

                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>身份证号:</td>
                    <td width="30%">
                        <input name="num" id="num" class="mini-radiobuttonlist" value="${num!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '不正确' },{ id: '02', name: '正确' }]"
                               textField="name" valueField="id" required="true"/>
                    </td>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>固定住所:</td>
                    <td width="30%">
                        <input name="zhusuo" id="zhusuo" class="mini-radiobuttonlist" value="${zhusuo!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '有' },{ id: '02', name: '无' }]"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>住&emsp;&emsp;址:</td>
                    <td width="30%">
                        <input name="addr" id="addr" class="mini-radiobuttonlist" value="${addr!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '不正确' },{ id: '02', name: '正确' }]"
                               textField="name" valueField="id" required="true"/>
                    </td>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>家庭成员犯罪记录:</td>
                    <td width="30%">
                        <input name="jiatingf" id="jiatingf" class="mini-radiobuttonlist" value="${jiatingf!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '有' },{ id: '02', name: '无' }]"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>主观恶性程度:</td>
                    <td width="30%">
                        <input name="exing" id="exing" class="mini-radiobuttonlist" value="${exing!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '故意犯罪' },{ id: '02', name: '过失犯罪' }]"
                               textField="name" valueField="id" required="true"/>
                    </td>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>家庭成员精神病史:</td>
                    <td width="30%">
                        <input name="jiatingb" id="jiatingb" class="mini-radiobuttonlist" value="${jiatingb!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '有' },{ id: '02', name: '无' }]"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>

                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>社会交往态度:</td>
                    <td width="30%" >
                        <input name="jiaowangtd" id="jiaowangtd" class="mini-radiobuttonlist" value="${jiaowangtd!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '消极回避' },{ id: '02', name: '正常社会交往' },{ id: '03', name: '积极主动' }]"
                               textField="name" valueField="id" required="true"/>
                    </td>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>回归去向:</td>
                    <td width="30%">
                        <input name="huigui" id="huigui" class="mini-radiobuttonlist" value="${huigui!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '下落不明' },{ id: '02', name: '人户分离' },{ id: '03', name: '回原籍' }]"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>对安置帮教态度:</td>
                    <td width="30%">
                        <input name="taidu" id="taidu" class="mini-radiobuttonlist" value="${taidu!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '不配合' },{ id: '02', name: '消极配合' },{ id: '03', name: '积极配合' }]"
                               textField="name" valueField="id" required="true"/>
                    </td>

                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>文化程度:</td>
                    <td width="30%">
                        <input name="edu" id="edu" class="mini-radiobuttonlist" value="${edu!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '小学以下' },{ id: '02', name: '初中' },{ id: '03', name: '高中' },{ id: '04', name: '大专以上' }]"
                               required="true"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>

                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>年&emsp;&emsp;龄:</td>
                    <td width="80%" colspan="3">
                        <input name="age" id="age" class="mini-radiobuttonlist" value="${age!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '18岁以下' },{ id: '02', name: '18-35岁' },{ id: '03', name: '36-45岁' },{ id: '04', name: '46岁以上' }]"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>交往范围:</td>
                    <td width="80%" colspan="3">
                        <input name="jiaowangfw" id="jiaowangfw" class="mini-radiobuttonlist" value="${jiaowangfw!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '社会关系复杂' },{ id: '02', name: '存在不良交友情况' },{ id: '03', name: '无不良交友情况' }]"
                               required="true"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>家庭成员关系:</td>
                    <td width="80%" colspan="3">
                        <input name="jiatingc" id="jiatingc" class="mini-radiobuttonlist" value="${jiatingc!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '无家可归，无亲可投' },{ id: '02', name: '单亲' },{ id: '03', name: '家庭不睦' },{ id: '04', name: '家庭和睦' }]"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>就业情况:</td>
                    <td width="80%" colspan="3">
                        <input name="jiuye" id="jiuye" class="mini-radiobuttonlist" value="${jiuye!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '不愿就业' },{ id: '02', name: '无能力就业' },{ id: '03', name: '愿意就业但未就业' },{ id: '04', name: '已就业' }]"
                               required="true"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>生活来源:</td>
                    <td width="80%" colspan="3">
                        <input name="shenghuo" id="shenghuo" class="mini-radiobuttonlist" value="${shenghuo!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '无固定生活来源' },{ id: '02', name: '依靠政府救助' },{ id: '03', name: '依靠家庭' },{ id: '04', name: '依靠自身工作收入' }]"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>身体状况:</td>
                    <td width="80%" colspan="3">
                        <input name="shenti" id="shenti" class="mini-radiobuttonlist" value="${shenti!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '严重疾病或身体残疾' },{ id: '02', name: '患病花费较大或影响就业' },{ id: '03', name: '一般慢性疾病' },{ id: '04', name: '健康' }]"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>婚姻情况</td>
                    <td width="80%" colspan="3">
                        <input name="hunyin" id="hunyin" class="mini-radiobuttonlist" value="${hunyin!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '离异、丧偶、大龄未婚(25周岁以上)' },{ id: '02', name: '已婚或25周岁以下未婚(家庭稳定)' }]"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>心理健康状况:</td>
                    <td width="80%" colspan="3">
                        <input name="xinli" id="xinli" class="mini-radiobuttonlist" value="${xinli!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '性格严重扭曲，患有严重心理疾病' },{ id: '02', name: '患有明显心理疾病' },{ id: '03', name: '轻微心理问题' },{ id: '04', name: '健康' }]"
                               required="true"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>自控能力:</td>
                    <td width="80%" colspan="3">
                        <input name="zikong" id="zikong" class="mini-radiobuttonlist" value="${zikong!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '性格急躁，冲动，难以自控' },{ id: '02', name: '自控能力差或遇事不能自控' },{ id: '03', name: '能够较好的自我控制' }]"
                               required="true"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>对现实社会的心态:</td>
                    <td width="80%" colspan="3">
                        <input name="xianshi" id="xianshi" class="mini-radiobuttonlist" value="${xianshi!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '对社会极度不满或严重仇视社会' },{ id: '02', name: '偶尔对社会流露不满' },{ id: '03', name: '能够正确看待社会现实' }]"
                               required="true"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>家庭经济状况:</td>
                    <td width="80%" colspan="3">
                        <input name="jiatingj" id="jiatingj" class="mini-radiobuttonlist" value="${jiatingj!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '低于当地最低生活标准' },{ id: '02', name: '无正当职业或收入不稳定' },{ id: '03', name: '收入稳定，能满足基本生活要求' },{ id: '04', name: '收入较高' }]"
                               required="true"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>法律知识或法治观念:</td>
                    <td width="80%" colspan="3">
                        <input name="falv" id="falv" class="mini-radiobuttonlist" value="${falv!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '无法律知识或法治观念（法盲）' },{ id: '02', name: '法律知识欠缺，法治观念淡薄' },{ id: '03', name: '熟知法律，具有较强的法治观念' }]"
                               required="true"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>职业技能:</td>
                    <td width="80%" colspan="3">
                        <input name="zhiye" id="zhiye" class="mini-radiobuttonlist" value="${zhiye!''}" onvaluechanged="onScoreChanged()"
                               data="[{ id: '01', name: '无职业技能且不愿学习' },{ id: '02', name: '掌握一定的职业技能，但未取得相应的资格证书' },{ id: '03', name: '掌握一项以上职业技能或取得相关专业技能证书' }]"
                               textField="name" valueField="id" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;">总分:</td>
                    <td width="30%" >
                        <input name="zongfen" id="zongfen" class="mini-textbox" value="${zongfen!''}" readonly/>
                    </td>
                    <td width=" 20%" align="right" style="line-height: 30px;">危险程度:</td>
                    <td width="30%" >
                        <div id="wxcd"></div>
                    </td>
                </tr>
            </table>
        </div>
        <!-- 新增提示信息 -->
        <div style="margin-left: 97px">
            <div style="font-size: 9px;margin-left: 80px;font-weight: bold;color:#c33b1c">
                <br><br>
                <span>提示信息:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;高危险性人员：总分>50分;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;较高危险性人员：40分< 总分 <=50分;</span>
                <br><br>
                <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;一般等级危险性人员：30分< 总分 <=40分;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;低等级危险性人员：总分<=30分;</span>
                <br><br>
            </div>
        </div>
        <br/>
        <hr/>
        <br/>
        <div id="editform1" class="form">
            <table class="form-table" width="100%" cellspacing="8">
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>鉴定日期:</td>
                    <td width="80%">
                        <input name="pingdate" id="pingdate" allowInput="true" class="mini-datepicker" value="${pingdate!''}"
                               required="true" ondrawdate="onDrawDate"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>鉴定结论:</td>
                    <td width="80%" colspan="3">
                        <input id="jielun" name="jielun" class="mini-textarea" emptyText="请输入内容(0-1000):"
                               value="${jielun!''}" style="width:90%; height: 80px;" required="true" maxlength="1000"/>
                    </td>
                </tr>
                <tr>
                    <td width=" 20%" align="right" style="line-height: 30px;"><font color="#dc143c">*</font>下一步措施:</td>
                    <td width="80%" colspan="3">
                        <input id="nextstep" name="nextstep" class="mini-textarea" emptyText="请输入内容(0-1000):"
                               value="${nextstep!''}" style="width:90%; height: 80px;" required="true" maxlength="1000"/>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</div>

<div style="width: 100%;position: absolute;bottom: 0;line-height: 45px;border-top:1px solid #dfdfdf;text-align: center">
    <a id="save" class="mini-button"   iconCls="fa-save" plain="true" onclick="saveData()">保存</a>
    <a class="mini-button" iconCls="fa-undo" plain="true" onclick="close()">取消</a>
</div>

<script type="text/javascript">
    mini.parse();

    var form = new mini.Form("form");

    var pidObj = mini.get("priNum");
    var nianduObj = mini.get("niandu");

    // 鉴定内容
    function onScoreChanged(){
        var data = form.getData();
        var zongfen = 0;
        zongfen += data.num == '01' ? 2 : 0;//身份证号
        zongfen += data.addr == '01' ? 2 : 0;//住址
        zongfen += data.age == '01' ? 5 : data.age == '02' ? 4 : data.age == '03' ? 3 : 1;//年龄
        zongfen += data.edu == '01' ? 5 : data.edu == '02' ? 4 : data.edu == '03' ? 3 : 2;//文化程度
        zongfen += data.jiuye == '01' ? 3 : data.jiuye == '02' ? 2 : data.jiuye == '03' ? 1 : 0;//就业情况
        zongfen += data.shenghuo == '01' ? 3 : data.shenghuo == '02' ? 2 : data.shenghuo == '03' ? 1 : 0;//生活来源
        zongfen += data.zhusuo == '01' ? 0 : 3;//固定住所
        zongfen += data.shenti == '01' ? 3 : data.shenti == '02' ? 2 : data.shenti == '03' ? 1 : 0;//身体状况
        zongfen += data.hunyin == '01' ? 3 : 0;//婚姻状况
        zongfen += data.jiatingc == '01' ? 4 : data.jiatingc == '02' ? 3 : data.jiatingc == '03' ? 2 : 0;//家庭成员关系
        zongfen += data.jiatingj == '01' ? 4 : data.jiatingj == '02' ? 3 : data.jiatingj == '03' ? 2 : 0;//家庭经济状况
        zongfen += data.jiatingf == '01' ? 3 : 0;//家庭成员犯罪记录
        zongfen += data.jiatingb == '01' ? 2 : 0;//家族精神病史
        zongfen += data.exing == '01' ? 4 : 1;//主观恶性程度
        zongfen += data.xinli == '01' ? 5 : data.xinli == '02' ? 4 : data.xinli == '03' ? 2 : 0;//心理健康状况
        zongfen += data.zikong == '01' ? 4 : data.zikong == '02' ? 2 : 1;//自控能力
        zongfen += data.falv == '01' ? 4 : data.falv == '02' ? 3 : 1;//法律知识或法治观念
        zongfen += data.xianshi == '01' ? 4 : data.xianshi == '02' ? 2 : 0;//对现实社会心态
        zongfen += data.jiaowangfw == '01' ? 3 : data.jiaowangfw == '02' ? 2 : 0;//交往范围
        zongfen += data.jiaowangtd == '01' ? 3 : data.jiaowangtd == '02' ? 1 : 0;//社会交往态度
        zongfen += data.zhiye == '01' ? 4 : data.zhiye == '02' ? 2 : 0;//职业技能
        zongfen += data.jiansuo == '01' ? 3 : 1;//监所评估
        zongfen += data.huigui == '01' ? 3 : data.huigui == '02' ? 2 : 1;//回归去向
        zongfen += data.taidu == '01' ? 3 : data.taidu == '02' ? 1 : 0;//态度
        mini.get("zongfen").setValue(zongfen);
        onZongfenChanged(zongfen);
    }

    // 总分评判规则
    function onZongfenChanged(score){
        if(score>50){
            s='<span style="color: red">高危险性人员</span> ';
        }else if(score>40&&score<=50){
            s='<span style="color: #ee623c ">较高危险性人员</span> ';
        }else if( score>30&&score<=40){
            s='<span style="color: #ff5a39 ">一般等级危险性人员</span> ';
        }else{
            s='<span style="color: #2b7dbc ">低等级危险性人员</span> ';
        }
        document.getElementById("wxcd").innerHTML=s;
    }

    function onLoad() {
        onScoreChanged();
    }

    function setYear(num) {
        //num:浮动范围
        //设置年份的选择
        var myDate = new Date();
        var year = myDate.getFullYear();//当前年份
        var startYear = year - num;//起始年份
        var endYear = year;//结束年份
        var data = "[";
        for (var i = startYear; i <= endYear; i++) {
            data += "{id:'" + i + "',name: '" + i + "年'},"
        }
        data = data.substr(0, data.length - 1) + "]";
        nianduObj.setData(data);
        nianduObj.select(num);
    }

    function saveData() {
        form.validate();
        if (form.isValid() == false) {
            mini.alert("请将评估信息录入完整");
            return;
        }
        var data = form.getData();
        data.zongfen = mini.get("zongfen").getValue();
        var json = mini.encode(data);
        $.ajax({
            url: "/azbj/azbjgl/bjgzgl/saveJdInfo",
            type: "post",
            data: {data: json},
            success: function (result) {
                if(result.code==1){
                    mini.alert("保存成功","成功",window.CloseOwnerWindow);
                } else if (result.code == 5599) {
                    mini.alert(result.message);
                } else if(result.code==7002){
                    mini.alert(result.message)
                }
            }
        });
    }

    //日期不能选择今天后面的日期
    function onDrawDate(e) {
        var date = e.date;
        var d = new Date();
        if (date.getTime() > d.getTime()) {
            e.allowSelect = false;
        }
    }

    function yearChange() {
        var niandu=mini.get("niandu").getValue();
        var prinum=mini.get("priNum").getValue();
        $.ajax({
            url: "/azbj/azbjgl/bjnfcz/findjdnf",
            type: "post",
            data: {niandu: niandu,priNum:prinum},
            success: function (result) {
                if(result.code==7002){
                    var form = new mini.Form("#form")
                    var controls=form.getFields();
                    $(controls).each(function(i,item){
                        item.setReadOnly(true);
                    })
                    $("span:contains('保存')").attr("hidden",true);
                    mini.alert(result.message)
                }else {
                    var form = new mini.Form("#form")
                    var controls=form.getFields();
                    $(controls).each(function(i,item){
                        item.setReadOnly(false);
                    })
                    $("span:contains('保存')").removeAttr("hidden");
                }
            }
        });

    }

    function close(action) {
        if (window.CloseOwnerWindow) {
            window.CloseOwnerWindow(action);
        } else {
            window.close();
        }
    }
</script>
</body>
</html>